import request from '@/utils/request'
// 学习卡相关
export function learningCardUserList(params) {
  return request({
    url: '/admin/user/userList',
    method: 'get',
    params
  })
}

export function getUserCardList(params) {
  return request({
    url: '/admin/user/studyCard/cardList',
    method: 'get',
    params
  })
}

export function getEnrollUserList(params) {
  return request({
    url: '/admin/user/chapter/enrollUserList',
    method: 'get',
    params
  })
}

export function cardRecord(params) {
  return request({
    url: '/admin/user/userCardList',
    method: 'get',
    params
  })
}
// 订单
export function getOrderList(params) {
  return request({
    url: '/admin/user/order/orderList',
    method: 'get',
    params
  })
}

export function cancelOrder(data) {
  return request({
    url: '/admin/user/order/cancelOrder',
    method: 'post',
    data
  })
}

export function confirmOrder(data) {
  return request({
    url: '/admin/user/order/confirmOrder',
    method: 'post',
    data
  })
}

// 评价
export function getCommentList(params) {
  return request({
    url: '/admin/user/comment/list',
    method: 'get',
    params
  })
}
// 评价2(展示课后评价)
export function getCommentList2(params) {
  return request({
    url: '/admin/user/question/list',
    method: 'get',
    params
  })
}
// 设置课后评价
export function setQuestion(data) {
  return request({
    url: '/admin/user/chapter/setQuestion',
    method: 'post',
    data
  })
}
// 问题展示
export function getQuestionList(params) {
  return request({
    url: '/admin/user/chapter/questionList',
    method: 'get',
    params
  })
}

export function commentInfo(params) {
  return request({
    url: '/admin/user/comment/userChapterCommentInfo',
    method: 'get',
    params
  })
}
export function exportSignList(params) {
  return request({
    url: '/admin/user/chapter/exportSignList',
    method: 'get',
    params
  })
}
// 合作企业
export function getCooperationList(params) {
  return request({
    url: '/admin/user/company/companyList',
    method: 'get',
    params
  })
}

export function addCooperation(data) {
  return request({
    url: '/admin/user/company/addCompany',
    method: 'post',
    data
  })
}

export function updateCooperation(data) {
  return request({
    url: '/admin/user/company/updateCompanyInfo',
    method: 'post',
    data
  })
}

export function cooperationInfo(params) {
  return request({
    url: '/admin/user/company/info',
    method: 'get',
    params
  })
}

export function delCooperation(data) {
  return request({
    url: '/admin/user/company/delCompany',
    method: 'post',
    data
  })
}

export function ishowCooperation(data) {
  return request({
    url: '/admin/user/company/changeShow',
    method: 'post',
    data
  })
}

export function sortCooperation(data) {
  return request({
    url: '/admin/user/company/updateSort',
    method: 'post',
    data
  })
}

export function updateUserCard(data) {
  return request({
    url: '/admin/user/updateUserCard',
    method: 'post',
    data
  })
}

export function signUp(data) {
  return request({
    url: '/admin/user/chapter/signUp',
    method: 'post',
    data
  })
}

export function userRecord(params) {
  return request({
    url: '/admin/user/userCourse',
    method: 'get',
    params
  })
}

export function companyRecord(params) {
  return request({
    url: '/admin/user/companyCourse',
    method: 'get',
    params
  })
}

export function exportCompanyStudy(params) {
  return request({
    url: '/admin/user/export/company/study',
    method: 'get',
    params
  })
}

export function shareRecordList(params) {
  return request({
    url: '/admin/user/shareRecordList',
    method: 'get',
    params
  })
}

